// 汽车类
class Automobile {
    protected String brand;
    protected String plateNumber;

    public Automobile(String brand, String plateNumber) {
        this.brand = brand;
        this.plateNumber = plateNumber;
    }

    // 计算租金的抽象方法，由子类实现
    public int getRent(int days) {
        return 0;
    }

    public String getBrand() {
        return brand;
    }

    public String getPlateNumber() {
        return plateNumber;
    }
}

// 卡车类
class Truck extends Automobile {
    private String size;

    public Truck(String brand, String plateNumber, String size) {
        super(brand, plateNumber);
        this.size = size;
    }

    @Override
    public int getRent(int days) {
        if ("小型".equals(size)) {
            return 300 * days;
        } else if ("中型".equals(size)) {
            return 350 * days;
        } else {
            return 500 * days;
        }
    }
}

// 巴士类
class Bus extends Automobile {
    private int seatCount;

    public Bus(String brand, String plateNumber, int seatCount) {
        super(brand, plateNumber);
        this.seatCount = seatCount;
    }

    @Override
    public int getRent(int days) {
        if (seatCount <= 16) {
            return 400 * days;
        } else {
            return 600 * days;
        }
    }
}